<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var reg = /a+/g;
			var str = 'aaabbba1';
			
			var re = str.replace(reg,'*');
			console.log(re);
		</script>
	</head>
	<body>
	</body>
</html>
